<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('result/index')}">所有成绩记录</a></li>
		<li class="active"><a href="{:url('result/edit')}">编辑成绩记录</a></li>
	</ul>
	<form class="form-horizontal js-ajax-form margin-top-20" action="{:url('result/editPost')}" method="post">
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>成绩</label>
			<div class="col-md-6 col-sm-10" >
				<input type="text" id="result" name="result" class="layui-input" value="{$result.result}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">学生姓名</label>
			<div class="col-md-6 col-sm-10">
				<select name="student_id" id="student_id" class="form-control">
					<option value="">请选择学生</option>
					<foreach name="student" item="vo">
						<if $result.student_id == $vo.id>
							<option value="{$vo.id}" selected>{$vo.name}</option>
							<else>
								<option value="{$vo.id}">{$vo.name}</option>
							</else>
						</if>
					</foreach>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">科目选择</label>
			<div class="col-md-6 col-sm-10">
				<select name="subject_id" id="subject_id" class="form-control">
					<option value="">请选择科目</option>
					<volist name="subject" id="vo">
						<if $result.subject_id == $vo.id>
							<option value="{$vo.id}" selected>{$vo.name}</option>
							<else>
								<option value="{$vo.id}">{$vo.name}</option>
							</else>
						</if>
					</volist>
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="id" value="{$result.id}"/>
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="{:url('admin/result/index')}">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>